package com.jackstraw.jack_base.datasource.moredatasource.bean;

import com.jackstraw.jack_base.datasource.database.parten.entity.DataBaseEntity;
import com.zaxxer.hikari.HikariDataSource;
import lombok.Data;


@Data
public class HikariDataBaseEntity extends DataBaseEntity<HikariDataBaseEntity> {


    /**
     * 获取连接的等待时长
     */
    private Long maxWait = 0L;

    /**
     * 单位：秒，检测连接是否有效的超时时间。底层调用jdbc Statement对象的void setQueryTimeout(int seconds)方法
     */
    private Integer validationQueryTimeout = 250;

    public HikariDataBaseEntity() {
        this.setType(HikariDataSource.class);
    }
}
